#include "udpClient.hpp"
using namespace Client;
#include <memory>
static void Uasge(string proc)
{
    cout<<"Usage\n\t"<<proc<<"local_port error"<<endl;
}
//./client  ip   port
int main(int argc, char* argv[])
{

    if(argc!=3)
    {
        Uasge(argv[0]);
        exit(USAGE_ERROR);
    }
    string ip = argv[1];
    uint16_t port = atoi(argv[2]);
    unique_ptr<udpclient> se_ptr(new udpclient(ip,port));
    se_ptr->initClient();
    se_ptr->startClient();
    return 0;
}